<?php
namespace My\Controller;

class ModelArticleController extends ContentController {
	
	// 文件上传
	public function uploadAction() {
		$upload = new \Utuo\Upload();
		$info = $upload->uploadOne();
		if (!$info) {
			$this->ajaxError($upload->getError());
		} else {
			$this->ajaxSuccess("上传成功", $info);
		}
	}
	
}